import java.io.*;
import java.net.Socket;

public class DateServerClient {
	public static void main(String[] args) throws IOException {
		Socket socket = new Socket("localhost", 2002);
		BufferedReader in = new BufferedReader(
			new InputStreamReader(socket.getInputStream()));
		String date = in.readLine();
		System.out.println("The date on the server is: " + date);
		socket.close();
	}
}
